package IO.iostream;/**   
* @Description: 
* @author xinchen 2016年10月17日 下午10:37:15   
*/
//Shorthand class for opening an output file
//for human-readable output.

import java.io.*;

public class PrintFile extends PrintStream {
	public PrintFile(String filename) throws IOException {
		super(new BufferedOutputStream(new FileOutputStream(filename)));
	}

	public PrintFile(File file) throws IOException {
		this(file.getPath());
	}
}
